import request from '@/utils/request'

// 查询健身打卡信息列表
export function listFitnesscheckins(query) {
  return request({
    url: '/system/fitnesscheckins/list',
    method: 'get',
    params: query
  })
}

// 查询健身打卡信息详细
export function getFitnesscheckins(checkId) {
  return request({
    url: '/system/fitnesscheckins/' + checkId,
    method: 'get'
  })
}

// 新增健身打卡信息
export function addFitnesscheckins(data) {
  return request({
    url: '/system/fitnesscheckins',
    method: 'post',
    data: data
  })
}

// 修改健身打卡信息
export function updateFitnesscheckins(data) {
  return request({
    url: '/system/fitnesscheckins',
    method: 'put',
    data: data
  })
}

// 删除健身打卡信息
export function delFitnesscheckins(checkId) {
  return request({
    url: '/system/fitnesscheckins/' + checkId,
    method: 'delete'
  })
}
